package com.hellogood.yaohuo.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.yaohuo.shared.entity.Quyu;

@RemoteServiceRelativePath("QuyuService")
public interface QuyuService extends RemoteService {

	public static class Util {
		public static QuyuServiceAsync instance;

		public static QuyuServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(QuyuService.class);
			}
			return instance;
		}
	}
	
	public List<Quyu> getAllQuyuList();
	
	public String deleteQuyu(String qyCode);
	
	public String createQuyu(Quyu q);
}
